<template>
	<view>
		<view class="box">
			<view v-for="(item,index) in items" class="item" :style="{transform:trans(index)}"></view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "myLoading",
		data() {
			return {
				items: [0, 1, 2, 3, 4, 5, 6, 7, 8]
			};
		},
		methods:{
			trans(key){
				return "rotate("+key*40+"deg)"
			}
		}
	}
</script>

<style>
	.box {
		width: 300rpx;
		height: 300rpx;
		background-color: skyblue;
		position: relative;
	}
	.box .item{
		height: 40rpx;
		width: 6rpx;
		background-color: rgba(255, 255, 255, 0.5);
		position: absolute;
		top: 0;
		left:147rpx;
		transform-origin: center 150rpx;
	}
	
</style>